﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace ISS.Models
{
    public class ISSContext : DbContext
    {
        public DbSet<Users> dbUsers {get;set;}
        public DbSet<Album> dbAlbum {get;set;}
        public DbSet<Images> dbImage { get; set; }
        public DbSet<AlbumComment> dbAlbumComment { get; set; }
        public DbSet<ImageComment> dbImageComment { get; set; }

        public ISSContext()
            : base()
        {
            Database.SetInitializer<ISSContext>(null);
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AlbumConfiguration());
            //modelBuilder.Configurations.Add(new CompanyConfiguration());
            base.OnModelCreating(modelBuilder);
        }
    }
}